﻿using System;
using System.Configuration.Provider;

namespace Hutech.Authentication.Library.Business.WebHelpers.UserSignInHandlers
{
    /// <summary>
    ///
    /// </summary>
    public class UserSignInHandlerProviderCollection : ProviderCollection
    {
        public override void Add(ProviderBase provider)
        {
            if (provider == null)
                throw new ArgumentNullException("The provider parameter cannot be null.");

            if (!(provider is UserSignInHandlerProvider))
                throw new ArgumentException("The provider parameter must be of type UserSignInHandlerProvider.");

            base.Add(provider);
        }

        public new UserSignInHandlerProvider this[string name]
        {
            get
            {
                return (UserSignInHandlerProvider)base[name];
            }
        }

        public void CopyTo(UserSignInHandlerProvider[] array, int index)
        {
            base.CopyTo(array, index);
        }
    }
}
